<?php
if (!defined('IN_IA')) {
    exit('Access Denied');
}
$openid = get_sysopenid(true);
$memberinfo = get_member_info($openid);
$condition = " and uid=" . intval($memberinfo['id']);
$condition .= " and id=" . intval($_GPC['id']);
$sql = "select * from " . tablename('eshop_member_reservation') . " where 1 {$condition}";
$row = pdo_fetchall($sql)[0];

include page('check_reservation');
?>